//
//  Extension + UIImageSwift.swift
//  WeiBo001
//
//  Created by ZhiQiang Li on 16/7/20.
//  Copyright © 2016年 ZhiQiang Li. All rights reserved.
//

import UIKit
import SDWebImage
extension UIImageView {
    convenience init(imageName: String) {
        self.init(image: UIImage(named: imageName))
    }
    func demo(){
        
    }
    // 对SDWebImage 封装
    func sh_setImage(urlString: String?, placeholderImgName: String){
        self.sd_setImageWithURL(NSURL(string: urlString ?? ""), placeholderImage: UIImage(named: placeholderImgName))
    }

}